/*
 * $Id: tcpserver.h,v 1.3 2005-12-05 15:11:29 bacon Exp $
 */

#ifndef _XP_NET_TCPSERVER_H_
#define _XP_NET_TCPSERVER_H_

#include <xp/net/socket.h>

typedef struct xp_tcpserver_t xp_tcpserver_t;
struct xp_tcpserver_t
{
	struct sockaddr_in address;
	int stop_requested;
	xp_bool_t __dynamic;
};

#ifdef __cplusplus
extern "C" {
#endif

xp_tcpserver_t* xp_tcpserver_open ();
int xp_tcpserver_close (xp_tcpserver_t* server);

#ifdef __cplusplus
}
#endif

#endif


